extends Spatial

# only used in editor
export(bool) var use_static_body: bool = true
export(bool) var use_stopper: bool = true
export(bool) var use_stopper_2: bool = true

func _ready():
	if not use_static_body:
		var sb: StaticBody = $StaticBody
		sb.collision_layer = 0
		sb.collision_mask = 0
	$RigidBody.apply_central_impulse(global_transform.basis.xform(Vector3(10.0, 0.0, 0.0)))
	if not Engine.editor_hint:
		$EditorOnly.queue_free()
		if not use_stopper:
			$Stopper.queue_free()
		if not use_stopper_2:
			$Stopper2.queue_free()
